﻿using UnityEngine;

namespace Share
{
    public class SingletonMono<T> : EventReciever where T : MonoBehaviour
    {
        private static T _instance;
        public static T Instance { get { return _instance; } }

        public virtual void DoInit() { }
        protected override void Awake()
        {
            base.Awake();
            _instance = this as T;
            DoInit();
        }
    }
}